package com.cy1;

import java.sql.SQLOutput;

public class JumpDemo {
    public static void main(String[] args) {
        JumpOperator jo=new JumpOperator();
       /* Dog d = new Dog();
        jo.useJumping(d);*/
       jo.useJumping(new Jumping() {
           @Override
           public void jump() {
               System.out.println("猪可以跳高了！");
           }
       });




    }
}
